<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>打印机选择</title>
    <script src="{{ url_for('printer.static', filename='js/main.js') }}"></script>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="container mt-5">
    <h1 class="mb-4">{{ title }}</h1>

    <div class="card">
        <div class="card-header">
            系统检测到的打印机
        </div>
        <div class="card-body">
            <div class="list-group">
                {% for printer in printers %}
                    <p>
                        <a href="{{ url_for('printer.select_printer', printer_name=printer) }}" class="list-group-item list-group-item-action">
                            <i class="bi bi-printer me-2"></i> {{ printer }}
                        </a>
                    </p>
                {% endfor %}
            </div>
        </div>
        <div class="card-footer text-muted">
            共找到 {{ printers|length }} 台打印机
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>

